<%- include('layouts/head.ejs', { pageConf })%>

<%- include('common/nav.ejs')%>

<div class="container" style="padding: 10px; display: inline-block;">
  <h1>编辑题目</h1>
  <form action="/admin/edit-problem-type" method="post">

    <% pageConf.inputFiled.forEach((item, index) => { %>
    <label for="" style="display: inline-block; margin-right: 10px;" ><%= item.title%></label>
    <input type="text" placeholder="<%= item.title %>" name="<%= item.name%>" value="<%= problemTypeData[item.name]%>" />
    <hr />
    <% }) %>
    <input type="submit" value="提交" />
    <input type="reset" value="重置" />
  </form>
</div>


<%- include('layouts/foot.ejs', { pageConf })%>